package sample9;

public class Main {

	public static void main(String[] args) {
		
		Car car1 = new Car(1234, 20.5);
		showPropeties(car1);

		Bike bike1 = new Bike(4321, 12.5);
		showPropeties(bike1);

		Student student = new Student(21, "佐藤裕也", "東京大学");
		showPropeties(student);

		Worker woker1 = new Worker(25, "山田太郎", "foxnet");
		showPropeties(woker1);

	}

	static void showPropeties(Propeties propeties) {
		propeties.toPropeties();
	}
}
